package grails4springcloudgreenwich

class HelloWorldController {
    static responseFormats = ['json', 'xml']

    def index() {
        def resp = [msg: 'Hello ' + (params.username ?: 'world')]
        respond resp, formats: responseFormats
    }
}
